package com.wetsion.securityoauthdemo.rmsclient.common;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author weixin
 * @version 1.0
 * @CLassName RmsClientDetailsProperties
 * @date 2019/3/8 3:04 PM
 */
@ConfigurationProperties("rms.oauth.client")
public class RmsClientDetailsProperties {

    /** 需要认证的平台ID **/
    private String clientId;

    /** 需要认证的平台密钥 **/
    private String clientSecret;

    /** 需要认证的用户 **/
    private String username;

    /** 需要认证的用户的密码 **/
    private String password;

    /** 认证类型：password, 此处仅支持password，建议不配置 **/
    private String grantType = "password";

    /** 获取认证的URL **/
    private String accessTokenUrl;

    /** 校验token的URL **/
    private String checkTokenUrl;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }

    public String getAccessTokenUrl() {
        return accessTokenUrl;
    }

    public void setAccessTokenUrl(String accessTokenUrl) {
        this.accessTokenUrl = accessTokenUrl;
    }

    public String getCheckTokenUrl() {
        return checkTokenUrl;
    }

    public void setCheckTokenUrl(String checkTokenUrl) {
        this.checkTokenUrl = checkTokenUrl;
    }
}
